extends Area3D

var health = 100
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
	rotate_y(2*delta)
	pass

func grow(value):
	self.scale += Vector3(value,value,value)
	pass
	
func damage(amount):
	health -= amount

	if health <= 0:
		queue_free()
